package com.hotel.dao;

import com.hotel.pojo.User;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface UserMapper {

    int updatePwd (User user);


   User findUser(String username,String password);

    void addUser(User user);

    List<User> queryAllUsers();

    void deleteUserById(Integer id);

    User queryUserById(Integer id);

    void updateUserById(User user);

    User queryUserByUsername(String findByUsername);
}
